package com.douguo.recipe.manager;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;

public class Registry {
	private static Map<String,Object> mValues;
	private static Registry mRegistry;
	
	private Registry(){
		
	}
	
	public static Registry getInstance() {
		if(mRegistry == null) {
			mRegistry = new Registry();
			mValues = new HashMap<String,Object>();
		}
		return mRegistry;
	}
	
	
	public void put(String key, Object object) {
		mValues.put(key, object);
	}
	
	public Object get(String key) {
		return mValues.get(key);
	}
}
